// 引入初始化的样式文件
import '@/styles/common.scss'
// 映入element-plus的样式文件
import "element-plus/theme-chalk/el-message.css";
// 映入pinia的插件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

// 引入懒加载插件并注册
import {lazyPlugin} from '@/directives/Imglazy.js'
// 引入全局组件插件
import {componentsPlugin} from '@/components/Components' 


import App from './App.vue'
import router from './router'

const app = createApp(App)
// 注册用户登录持久化插件
const pinia = createPinia()


app.use(pinia)
pinia.use(piniaPluginPersistedstate)

app.use(router)
app.use(lazyPlugin)
app.use(componentsPlugin)
app.mount('#app')

